<template>
    <div>

        <el-radio-group v-model="selected">
            <div style="margin-top: 20px">
                <el-radio border
                          :checked=false
                          :label="parnentData.title"
                          :value="parnentData.value"
                          v-on:change="sendParent">{{parnentData.title}}
                </el-radio>
            </div>
        </el-radio-group>
    </div>
</template>
<script>

    export default {
        props: {
            parnentData: {
                type: Object,
                required: false
            }
        },
        data: function () {
            return {
                selected: ''
            }
        }
        , methods: {
            sendParent: function () {
                console.log("子组件传参给父组件 value=" + this.parnentData.value)
                this.$parent.getSingleItemValue(this.parnentData.value);
            }
        }
    }

</script>